import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty } from 'class-validator';

export class UpdateUser {

  @ApiProperty({
    default: '用户名__测试',
  })
  @IsNotEmpty()
  userName: string;

  @ApiProperty({
    default: '李四__测试',
  })
  @IsNotEmpty()
  cetName: string;

  @ApiProperty({
    default: '15520203030',
  })
  mobile: string;

  @ApiProperty({
    default: '1426591905@qq.com',
  })
  @IsNotEmpty()
  eMail: string;

  @ApiProperty({
    default:
      'https://pic.netbian.com/uploads/allimg/221210/234825-16706873058dc3.jpg',
  })
  @IsNotEmpty()
  headPhoto: string;
}
